# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pixiewps
pkgver=1.4.2
pkgrel=0
pkgdesc="An offline WPS bruteforce utility"
url="https://github.com/wiire/pixiewps"
arch="all"
# upstream does not provide check
options="!check"
license="GPL-3.0"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wiire/$pkgname/archive/v$pkgver.tar.gz
	make-bindir.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e64b29b0ab46a768d7e76904b8be61a6c050ccd97da47dc43406a0247b728a521f88f10c8b3bdddfa87dca30955337782c91b3c128a578cbefdcceba811ad64f  pixiewps-1.4.2.tar.gz
85659b44c2a8102b968b5e00290279a0b9c89f358350895c8d873d1600bcb331ad8d401e2176075152fb2cc6cb479320f8add2803c73b93c9529c2ec81405e80  make-bindir.patch"
